home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
352_01.zip
/
STRPPFIX.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-10
|
380b
|
16 lines
// STRPPFIX.CPP - contains String::String(int) = fixed length constructor
//
#include <stdlib.h>
#include <string.h>
#include "wtwg.h"
#include "dblib.h"
String::String (int nb)
{
char *ptr = (char *)wmalloc ( nb+1, "String" );
memset ( ptr, ' ', nb );
ptr[nb] = 0;
s = ptr;
n = nb;
}
//--------------- end of String::String(int) ---------------------------